Skip to content

chore(ci): run Woodpecker CI 3.21.0 - #5540

Open
shepherdjerred wants to merge 1 commit into
mainfrom
chore/woodpecker-3.21
Open

shepherdjerred wants to merge 1 commit into
mainfrom
chore/woodpecker-3.21

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Why

U13b of the dependency plan: move the shared CI from Woodpecker 3.20.1 to 3.21.0, the newest release. 3.21.0 restores running tasks with a fresh lease when the server restarts, watches only each step's own pod in the Kubernetes backend (agent memory stops growing with steps x namespace pods), cleans up every workflow resource on teardown, compares agent tokens in constant time, and only auto-cancels older pipelines.

Upgrade review (3.20.1 -> 3.21.0)

From the 3.21.0 release notes, the migrations page and the v3.20.1..v3.21.0 source:

  • DB migrations (PostgreSQL): drop-024-migration-artifacts drops the stray singular user/org tables migration 024 created (the real tables are users/orgs); add-agent-token-hash adds and backfills agents.token_hash; remove-sqlite-legacy-inline-unique only touches SQLite. All three are short and additive, and 3.20.1 still runs on the migrated schema.
  • Config extension API: the server now rejects a null config entry from an extension (#7241). Ours never returns one, and we run in EXCLUSIVE mode. The extension parses the request loosely, so new model fields are fine.
  • GitHub statuses: skipped and canceled workflows now report error instead of staying pending (#7517). ci-complete already treats error and the skipped/canceled descriptions as terminal failures, and toolkit's readiness trusts Woodpecker's own pipeline state.
  • Agents: the shared agent secret still authenticates (#7638). The Kubernetes backend now adds a metadata.name field selector to its pod informers (#7600), and the existing pod list/watch RBAC still covers it.
  • Pipeline config: the schema only gains things (failure: cancel on plugin steps, a larger matrix limit). New compile errors for workflow dependency cycles and substitution errors. None of these fire on the generated graph (see Demo).

What

Pin Before After
woodpeckerci/woodpecker-server (catalog) v3.20.1@sha256:0f31560e… v3.21.0@sha256:54000bd0…
woodpeckerci/woodpecker-agent (catalog) v3.20.1@sha256:a7d7299a… v3.21.0@sha256:9cf65859…
go.woodpecker-ci.org/woodpecker/v3 (PMS runner, go mod tidy) v3.20.1 v3.21.0
PMS runner pinned backend (main.go, protocol.schema.json, media-pms.ts) 3.20.1 3.21.0
woodpecker-cli (temporal image) 3.20.1 3.21.0
woodpecker-cli (macOS bootstrap) 3.18.1 3.21.0

Demo

cdk8s render diff (bun run build in packages/homelab/src/cdk8s, origin/main catalog vs this branch). Only these lines change across the whole dist/:

-          image: woodpeckerci/woodpecker-server:v3.20.1@sha256:0f31560e29d67ec4a06d6eeee4bac38d2a2697a6a741b8a0db3998180f3a3517
+          image: woodpeckerci/woodpecker-server:v3.21.0@sha256:54000bd06b022dcac0b8fd987072c43766ed10b7643cf25ad9ff70af51196f08
# x6 agent Deployments (completion, main, maintenance, pr, pr-light, review)
-          image: woodpeckerci/woodpecker-agent:v3.20.1@sha256:a7d7299a13add0b3936fa0ac9ed23507fe283a7fc7d9596c4289d7e8206541eb
+          image: woodpeckerci/woodpecker-agent:v3.21.0@sha256:9cf65859a977c20b44f27d4a1d69a5d1fcb2dfae21d2f6a08711f2b3cfac4e72

Generated pipeline lints on both versions. I rendered all 50 workflows the extension emits (PR graph with ci-complete, main push, extended, and every maintenance kind) and ran woodpecker-cli lint from the checksum-verified release binaries:

woodpecker-cli workflows errors warnings
3.20.1 (before) 50 0 202 (98 clone allow-list, 54 when event filter, …)
3.21.0 (after) 50 0 202 (identical, line for line)

Live rollout: filled in after merge (server/agent versions, migration logs, agent connections, first pipeline on 3.21.0). Forum notice: FM-411.

Verification

  • go -C packages/woodpecker-config-extension/reproduction/pms-runner build ./... && go vet ./... && go test -race -count=1 ./...: pass. This includes TestActualRenderedWorkflowCompiles, which compiles the real emitted workflow through the 3.21.0 compiler.
  • bunx turbo run build typecheck test lint --filter=@shepherdjerred/woodpecker-config-extension --filter=@shepherdjerred/version-catalog: 12/12 tasks pass (485 extension tests, including the test that ties the PMS runner pin to the catalog's agent tag).
  • bunx turbo run typecheck test lint --filter=@homelab/cdk8s --filter=@shepherdjerred/dotfiles-scripts: 40/40 tasks pass (269 cdk8s test files).
  • bun run --cwd packages/homelab/src/cdk8s generate:catalog: no inventory change.
  • bunx lefthook run pre-commit: pass.
  • Extended tier: bunx turbo run test:extended --filter='...[origin/main]' --continue: 65/65 tasks successful (delivery 75 files, media 406, scout backend db 164, scout temporal 21, temporal 45 + 90, toolkit, mc-harness, the-storm JVM BUILD SUCCESSFUL).
  • Live (after merge): the server and agents roll out on 3.21.0, the migration logs complete, the agents reconnect, and a real pipeline runs on 3.21.0. Results are under Demo once observed.

🤖 Generated with Claude Code

@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shepherdjerred
shepherdjerred marked this pull request as ready for review December 3, 2026 04:15
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for c1f6bff from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T04:18:09.011786Z c1f6bff Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: c1f6bffff2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shepherdjerred
shepherdjerred force-pushed the chore/woodpecker-3.21 branch 4 times, most recently from e7e6659 to 40be8ed Compare December 3, 2026 08:45
Why
Woodpecker 3.21.0 is the newest release (one minor from our 3.20.1).
It restores running tasks with a fresh lease across server restarts,
watches only each step's own pod in the Kubernetes backend (agent
memory no longer grows with steps x namespace pods), cleans up every
workflow resource on teardown, compares agent tokens in constant time,
and only auto-cancels older pipelines.

Upgrade review (3.20.1 -> 3.21.0 release notes and v3.20.1..v3.21.0
source): no breaking change for this deployment.
- Migrations: drop-024-migration-artifacts (drops the stray singular
  `user`/`org` tables migration 024 created; real tables are
  `users`/`orgs`), add-agent-token-hash (adds and backfills
  agents.token_hash), remove-sqlite-legacy-inline-unique (SQLite only,
  no-op on our PostgreSQL). Short and additive; 3.20.1 still runs on
  the migrated schema.
- Config extension: the server now rejects a null config entry from
  an extension; ours never returns one. The request schema is parsed
  loosely, so new model fields are accepted.
- GitHub statuses: skipped and canceled workflows now report `error`
  instead of staying `pending`. ci-complete already treats `error` and
  the skipped/canceled descriptions as terminal failures, and toolkit
  trusts Woodpecker's own pipeline state.
- Agents keep authenticating with the shared agent secret.

What
- version catalog: woodpecker-server and woodpecker-agent images
  v3.20.1 -> v3.21.0 (multi-arch index digests).
- woodpecker-config-extension PMS runner: go.woodpecker-ci.org/
  woodpecker/v3 v3.20.1 -> v3.21.0 (go mod tidy), with its pinned
  backend version in main.go, protocol.schema.json and media-pms.ts.
- woodpecker-cli: temporal image 3.20.1 -> 3.21.0; macOS bootstrap
  3.18.1 -> 3.21.0.

Verification
- cdk8s render diff: only the six agent Deployments and the server
  Deployment change image (v3.20.1 -> v3.21.0).
- All 50 generated workflows (PR, push, extended, every maintenance
  kind) lint with woodpecker-cli 3.21.0 and 3.20.1 with identical
  output: 0 errors, same 202 warnings.
- go -C reproduction/pms-runner build, vet and test -race pass.
- bunx turbo run build typecheck test lint for
  woodpecker-config-extension and version-catalog; typecheck test lint
  for @homelab/cdk8s and dotfiles-scripts: all pass.
- Not yet run: live server/agent rollout, DB migration logs and a real
  pipeline on 3.21.0 (verified after merge).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant